<?php  
    $tablenum = $_POST['taleNum'];
    $appid = "wxe4003f0ac5b4efca";  
    $url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe4003f0ac5b4efca&redirect_uri=http%3a%2f%2fldl.isaphp.com%2fgetuserinfoTwo.php&response_type=code&scope=snsapi_userinfo&state='.$tablenum.'#wechat_redirect';  
    header("Location:".$url);  
?> 